<?php
$string = "A,C,D,E";
$result = preg_replace('/[^a-zA-Z]/', '', $string);
echo $result; // 输出：HelloWorld